﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCDto.OA.WorkflowTemplate.WorkflowTemplateFormCustomDatabaseTable;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateFormCustomDatabase
{
	/// <summary>
	/// 工作流模板表单自定义数据库
	/// </summary>
	public class WorkflowTemplateFormCustomDatabaseRequestDto
	{
		/// <summary>
		/// 数据库注释
		/// </summary>		
		[Display(Name = "数据库注释")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[MaxLength(50, ErrorMessage = "{0} 长度应小于{1}")]
		public string DatabaseComment { get; set; }
		/// <summary>
		/// 数据库名称
		/// </summary>		
		[Display(Name = "数据库名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[MaxLength(50, ErrorMessage = "{0} 长度应小于{1}")]
		public string DatabaseName { get; set; }
		/// <summary>
		/// 更新时间
		/// </summary>		
		[Display(Name = "更新时间")]
		public DateTime? UpdateTime { get; set; }
		/// <summary>
		/// 表数据信息列表
		/// </summary>		
		[Display(Name = "表数据信息列表")]
		public List<WorkflowTemplateFormCustomDatabaseTableRequestDto> Tables { get; set; }
	}
}

